package com.itstyle.zmlife.controller;

import com.itstyle.zmlife.entity.MerchantInfoDTO;
import com.itstyle.zmlife.service.MerchantInfoService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Api(tags = "商户信息后台")
@Controller
public class MerchantInfoController {
    @Autowired
    private MerchantInfoService merchantInfoService;

    @ApiOperation(value = "新增")
    @PostMapping("/addMerchantInfo")
    @ResponseBody
    public void addMerchantInfo(MerchantInfoDTO dto) {
        merchantInfoService.addMerchantInfo(dto);
    }
}
